package com.itheima.logicoperator;

public class logicoperatorDemo1 {
    public static void main(String[] args) {
        //1&
        System.out.println(true&true);
        System.out.println(false&true);
        System.out.println(true&false);
        System.out.println(false&false);

        //2,|
        System.out.println(true | true);
        System.out.println(false | true);
        System.out.println(true | false);
        System.out.println(false | false);

        //3.异或 ^
        System.out.println(true ^ true);
        System.out.println(false ^ true);
        System.out.println(true ^ false);
        System.out.println(false ^ false);

        //4.取反 !
        System.out.println(!true );

    }
}
